const express = require("express");

const app  = express();

const path = require("path");
app.listen(4000,()=>{
    console.log("4000端口已经打开");
})
  
 let loginrouter = require("./routertologin.js");
 app.use("/image",express.static(path.join(__dirname,'/image')));
 app.use(express.urlencoded({extends:false}));
 app.use(express.json());
app.use(loginrouter);